<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        html, body,.container{
            height:2000px;
            width:100%;
            margin:0;
            padding:0;
            position:relative;
        }
        .container{
            display:flex;
            flex-direction:column;

        }
        .container .section{
            flex:1;
        }
        .header{
            height:200px;
        }
        .footer{
            height:200px;
        }
    </style>

    <script src="js/jquery-1.11.1.min.js"></script>
    <script>
      $(function(){
        // 加载子页面
        $(".header").load("header.html");
        $(".footer").load("footer.html");
      })
    </script>
</head>
<body>
<div class="container">
    <div class="header">

    </div>

    <div class="section"></div>
    <div class="section"></div>

    <div class="footer"></div>


</div>

</body>
</html>